<?php /*a:3:{s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\marketmanage\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3><?php echo htmlentities($marketmanage_type_list[$marketmanage_type]); ?></h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>
    
    <form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('marketmanage_name')); ?></dt>
                <dd><input type="text" value="<?php echo htmlentities(app('request')->param('marketmanage_name')); ?>" name="marketmanage_name" class="txt"></dd>
            </dl>
            <div class="btn_group">
                <input type="submit" class="btn" value="<?php echo htmlentities(lang('ds_search')); ?>">
                <a href="<?php echo url('Marketmanage/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
            </div>
        </div>
    </form>
    
    <table class="ds-default-table">
        <thead>
            <tr>
                <th><?php echo htmlentities(lang('marketmanage_name')); ?></th>
                <th><?php echo htmlentities(lang('marketmanage_jointype')); ?></th>
                <th><?php echo htmlentities(lang('marketmanage_time')); ?></th>
                <th><?php echo htmlentities(lang('marketmanage_totalcount')); ?></th>
                <th><?php echo htmlentities(lang('marketmanage_totalwin')); ?></th>
                <th><?php echo htmlentities(lang('ds_handle')); ?></th>
            </tr>
        </thead>
        <tbody>
            <?php if(!(empty($marketmanage_list) || (($marketmanage_list instanceof \think\Collection || $marketmanage_list instanceof \think\Paginator ) && $marketmanage_list->isEmpty()))): if(is_array($marketmanage_list) || $marketmanage_list instanceof \think\Collection || $marketmanage_list instanceof \think\Paginator): if( count($marketmanage_list)==0 ) : echo "" ;else: foreach($marketmanage_list as $key=>$marketmanage): ?>
            <tr id="ds_row_<?php echo htmlentities($marketmanage['marketmanage_id']); ?>">
                <td><?php echo htmlentities($marketmanage['marketmanage_name']); ?></td>
                <td><?php if($marketmanage['marketmanage_jointype'] == '0'): ?><?php echo htmlentities(lang('ds_total')); ?><?php echo htmlentities($marketmanage['marketmanage_joincount']); ?>次<?php elseif($marketmanage['marketmanage_jointype'] == '1'): ?>每天<?php echo htmlentities($marketmanage['marketmanage_joincount']); ?>次<?php elseif($marketmanage['marketmanage_jointype'] == '2'): ?>不限次数<?php else: ?>类型错误<?php endif; ?></td>
                <td><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($marketmanage['marketmanage_begintime'])? strtotime($marketmanage['marketmanage_begintime']) : $marketmanage['marketmanage_begintime'])); ?>-<?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($marketmanage['marketmanage_endtime'])? strtotime($marketmanage['marketmanage_endtime']) : $marketmanage['marketmanage_endtime'])); ?></td>
                <td><?php echo htmlentities($marketmanage['marketmanage_totalcount']); ?></td>
                <td><?php echo htmlentities($marketmanage['marketmanage_totalwin']); ?></td>
                <td>
                    <a href="javascript:dsLayerOpen('<?php echo url('Marketmanage/detail',['marketmanage_id'=>$marketmanage['marketmanage_id'],'type'=>$marketmanage['marketmanage_type']]); ?>','<?php echo htmlentities(lang('ds_detail')); ?>')" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('ds_detail')); ?></a>
                    <a href="javascript:dsLayerOpen('<?php echo url('Marketmanage/edit',['marketmanage_id'=>$marketmanage['marketmanage_id'],'type'=>$marketmanage['marketmanage_type']]); ?>','<?php echo htmlentities(lang('ds_edit')); ?>')" class="dsui-btn-edit"><i class="iconfont"></i><?php echo htmlentities(lang('ds_edit')); ?></a>
                    <a href="javascript:dsLayerConfirm('<?php echo url('Marketmanage/del',['marketmanage_id'=>$marketmanage['marketmanage_id'],'type'=>$marketmanage['marketmanage_type']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>')"  class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
                    <?php if($marketmanage['marketmanage_endtime'] > TIMESTAMP): ?>
                    <a href="javascript:dsLayerOpen('<?php echo url('Marketmanage/link',['marketmanage_id'=>$marketmanage['marketmanage_id'],'type'=>$marketmanage['marketmanage_type']]); ?>','<?php echo htmlentities(lang('ds_link')); ?>')" class="dsui-btn-link"><i class="iconfont"></i><?php echo htmlentities(lang('ds_link')); ?></a>
                    <?php endif; ?>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; else: ?>
            <tr class="no_data">
                <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
            </tr>
            <?php endif; ?>
        </tbody>
    </table>
    <?php echo $show_page; ?>
</div>